import request from '@/utils/request';
import qs from 'qs'

export const sendSms = (tenantId, mobile, templateId) => {
  return request({
    url: '/api/zdservercore-system/smscheck/sendbymobile',
    method: 'get',
    params: {
      tenantId,
      mobile,
      templateId
    }
  })
}


export const sendLoginSms = (mobile) => {
  let postData = qs.stringify({
    account: mobile
  });
  return request({
    url: '/api/zdservercore-auth/sendMobileLogin',
    method: 'post',
    params: postData
  })
}
